<?php
namespace App\Libs\ZiNiao;

use App\Libs\ZiNiao\Common\OpenClient;
class RequireOpenClient
{
    private static $_instance = null;

    public static function getInstance(){
        if(!is_object(self::$_instance)){
            $appId = config('ziniaoapi.app_id');
            $privateKey = config('ziniaoapi.private_key');
            $url = "https://sbappstoreapi.ziniao.com";// 请求url
            self::$_instance = new OpenClient($appId, $privateKey, $url);
        }
        return self::$_instance;
    }
}
